package com.recipedb.recipedb.service;

import com.recipedb.recipedb.entity.UserMessage;
import java.util.List;
import java.util.Optional;

public interface UserMessageService {
    UserMessage save(UserMessage entity);
    void deleteById(Long id);
    Optional<UserMessage> findById(Long id);
    List<UserMessage> findAll();

    List<UserMessage> findByUserId(Long userId);
    List<UserMessage> findUnreadByUserId(Long userId);
    void markAllAsRead(Long userId);
}
